/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023.
 * Description: support scsi offline notify
 * Author: liwugui <liwugui1@huawei.com>
 * Create: 2023-09-07
 * Note: this file isn't compiled independently, it is included
 * in drivers/scsi/scsi_error.c
 */

#ifdef CONFIG_RTOS_HAL_SCSI_DEVICE_OFFLINE_NOTIFY
ATOMIC_NOTIFIER_HEAD(scsi_device_offline_notify);
EXPORT_SYMBOL_NS(scsi_device_offline_notify, HW_RTOS_NS);


void scsi_eh_offline_notify(struct scsi_device *sdev)
{
	atomic_notifier_call_chain(&scsi_device_offline_notify, 0, sdev);
}
#endif
